<div id="blog_top_hr">
    <div id="header">Блог</div>
    <div id="users">Читатели/Публикации</div>
    <div id="rating">Рейтинг</div>    
    <div id="karma">Карма</div>
</div>


<div id="blog_top_body">
<?php foreach ($blog_top as $blog): ?>
  <div class="list_class">
    <div class="header"><a href="/blog/<?=$blog['cat_name']?>/"><?=$blog['cat_header']?></a></div>
    <div class="users"><?=$blog['cat_users']?>/<?=$blog['count']?></div>
    <div class="rating"><span>&nbsp;<?=$blog['rating']?>&nbsp;</span></div>
    <div class="karma"><span>&nbsp;<?= number_format ($blog['cat_rating'], 2, ',', '') ?>&nbsp;</span></div>
  </div>
<?php endforeach; ?>
</div>
